package hyo.hun.lifemanager.today;

import android.os.Parcel;
import android.os.Parcelable;

public class TodayData implements Parcelable 
{
	private String id;
	private String text;

	
	public TodayData(){};
	
	public TodayData(Parcel source)
	{
		this.id = source.readString();
		this.text = source.readString();
	}
	
	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(this.getId());
		dest.writeString(this.getText());
	}
	
	public static Parcelable.Creator<TodayData> CREATOR = new Creator<TodayData>()
	{
		@Override
		public TodayData[] newArray(int size)
		{
			return new TodayData[size];
		}
		
		@Override
		public TodayData createFromParcel(Parcel source)
		{
			return new TodayData(source);
		}
	};

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}
	
	

}
